import json
from os.path import dirname, realpath


def get_config(name):
    path = dirname(realpath(__file__))+'/configs/'+name+'.json'
    with open(path, 'r', encoding='utf-8')as f:
        return json.loads(f.read())